package day03;
//关系运算符
public class OperDemo2 {
    public static void main(String[] args) {
         //2. 关系运算符，<,>,<=,>=,==,!=
        int a=5,b=10,c=5;
        System.out.println(a>b);//false
        System.out.println(c<b);//true
        System.out.println(a>=c);//true
        System.out.println(a==c);//true
        System.out.println(a!=c);//false
        System.out.println(a!=b);//true
        System.out.println("-------------------------------------------------");
        System.out.println(a%2==0);//false
        System.out.println(a+c>b);//false
        System.out.println(a++>5);//false
        System.out.println(++a>5);//true
        System.out.println(a);//7

        if (a>b&&a>=c){
            System.out.println("a大于b并且a大于等于c");
        }
        if (a>b||a>=c){
            System.out.println("a大于b或者a大于等于c");
        }
        if (!(a>b)){
            System.out.println("a不大于b");
        }
    }
}
